package group.sicher.core.utils.image;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * description:
 * author:dengjinde
 * date:2018/10/29
 */
@ApiModel(description = "图片上传的参数对象")
public class ImageUploadParam {

    @ApiModelProperty(value = "宽")
    private Integer width; //宽
    @ApiModelProperty(value = "高")
    private Integer height; //高
    @ApiModelProperty(value = "品质 0-1f")
    private Float quality; //品质 0-1f
    @ApiModelProperty(value = "缩放大小  0-1f")
    private Float scale;//缩放大小  0-1f
    @ApiModelProperty(value = "裁剪x坐标")
    private Integer x;//裁剪x坐标
    @ApiModelProperty(value = "裁剪y坐标")
    private Integer y;//裁剪y坐标
    @ApiModelProperty(value = "图片操作类型  包括 0压缩 1裁剪 2水印")
    private Integer type = 0;//图片操作类型  包括 0压缩 1裁剪 2水印

    public Integer getWidth() {
        return width;
    }

    public void setWidth(Integer width) {
        this.width = width;
    }

    public Integer getHeight() {
        return height;
    }

    public void setHeight(Integer height) {
        this.height = height;
    }

    public Float getQuality() {
        return quality;
    }

    public void setQuality(Float quality) {
        this.quality = quality;
    }

    public Float getScale() {
        return scale;
    }

    public void setScale(Float scale) {
        this.scale = scale;
    }

    public Integer getX() {
        return x;
    }

    public void setX(Integer x) {
        this.x = x;
    }

    public Integer getY() {
        return y;
    }

    public void setY(Integer y) {
        this.y = y;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
}
